package com.funmi.lizip.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName ec_post_disaster_assessment
 */
@TableName(value ="ec_post_disaster_assessment")
@Data
public class EcPostDisasterAssessment implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 火灾名称标题
     */
    private String title;

    /**
     * 火灾时间
     */
    private Date fireTime;

    /**
     * 火灾地址
     */
    private String address;

    /**
     * 受灾面积
     */
    private String area;

    /**
     * 主要树种
     */
    private String mainTree;

    /**
     * 房屋
     */
    private String house;

    /**
     * 人员
     */
    private String personnel;

    /**
     * 动物
     */
    private String animal;

    /**
     * 重要设施
     */
    private String importantFacilities;

    /**
     * 基础地理数据(地貌、水系、植被)
     */
    private String basicGeographicInformation;

    /**
     * 基础环境数据(空气质量、湿度、空气成分浓度等)
     */
    private String basicEnvironmentalInformation;

    /**
     * 森林资源数据
     */
    private String forestResourcesInformation;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 警情编号
     */
    private String alarmNo;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    private Date createAt;

    public EcPostDisasterAssessment() {
        this.isDelete = 0;
        this.createAt = new Date();
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EcPostDisasterAssessment other = (EcPostDisasterAssessment) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getFireTime() == null ? other.getFireTime() == null : this.getFireTime().equals(other.getFireTime()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getArea() == null ? other.getArea() == null : this.getArea().equals(other.getArea()))
            && (this.getMainTree() == null ? other.getMainTree() == null : this.getMainTree().equals(other.getMainTree()))
            && (this.getHouse() == null ? other.getHouse() == null : this.getHouse().equals(other.getHouse()))
            && (this.getPersonnel() == null ? other.getPersonnel() == null : this.getPersonnel().equals(other.getPersonnel()))
            && (this.getAnimal() == null ? other.getAnimal() == null : this.getAnimal().equals(other.getAnimal()))
            && (this.getImportantFacilities() == null ? other.getImportantFacilities() == null : this.getImportantFacilities().equals(other.getImportantFacilities()))
            && (this.getBasicGeographicInformation() == null ? other.getBasicGeographicInformation() == null : this.getBasicGeographicInformation().equals(other.getBasicGeographicInformation()))
            && (this.getBasicEnvironmentalInformation() == null ? other.getBasicEnvironmentalInformation() == null : this.getBasicEnvironmentalInformation().equals(other.getBasicEnvironmentalInformation()))
            && (this.getForestResourcesInformation() == null ? other.getForestResourcesInformation() == null : this.getForestResourcesInformation().equals(other.getForestResourcesInformation()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getAlarmNo() == null ? other.getAlarmNo() == null : this.getAlarmNo().equals(other.getAlarmNo()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getCreateAt() == null ? other.getCreateAt() == null : this.getCreateAt().equals(other.getCreateAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getFireTime() == null) ? 0 : getFireTime().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getArea() == null) ? 0 : getArea().hashCode());
        result = prime * result + ((getMainTree() == null) ? 0 : getMainTree().hashCode());
        result = prime * result + ((getHouse() == null) ? 0 : getHouse().hashCode());
        result = prime * result + ((getPersonnel() == null) ? 0 : getPersonnel().hashCode());
        result = prime * result + ((getAnimal() == null) ? 0 : getAnimal().hashCode());
        result = prime * result + ((getImportantFacilities() == null) ? 0 : getImportantFacilities().hashCode());
        result = prime * result + ((getBasicGeographicInformation() == null) ? 0 : getBasicGeographicInformation().hashCode());
        result = prime * result + ((getBasicEnvironmentalInformation() == null) ? 0 : getBasicEnvironmentalInformation().hashCode());
        result = prime * result + ((getForestResourcesInformation() == null) ? 0 : getForestResourcesInformation().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getAlarmNo() == null) ? 0 : getAlarmNo().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getCreateAt() == null) ? 0 : getCreateAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", title=").append(title);
        sb.append(", fireTime=").append(fireTime);
        sb.append(", address=").append(address);
        sb.append(", area=").append(area);
        sb.append(", mainTree=").append(mainTree);
        sb.append(", house=").append(house);
        sb.append(", personnel=").append(personnel);
        sb.append(", animal=").append(animal);
        sb.append(", importantFacilities=").append(importantFacilities);
        sb.append(", basicGeographicInformation=").append(basicGeographicInformation);
        sb.append(", basicEnvironmentalInformation=").append(basicEnvironmentalInformation);
        sb.append(", forestResourcesInformation=").append(forestResourcesInformation);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", alarmNo=").append(alarmNo);
        sb.append(", content=").append(content);
        sb.append(", createAt=").append(createAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}